<?php

namespace app\api\model;

trait PaginatePassPage
{
    /**
     * @param int $page
     * @param int $size
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public function paginatePassPage(int $page = 1, int $size = 10)
    {
        return $this->page($page, $size)->paginate($size);
    }
}